# -*- utf-8 -*-
# author : li shi jie
# Email : yr785339493@qq.com

import requests
import re

base_url = 'https://www.ae.com/aerie-bras/aerie/s-cat/4840012?cm=sCN-cCNY&navdetail=mega:cat6610030:c1:p2'

headers = {
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36',
    'referer': 'https://www.ae.com/aerie-bras/aerie/s-cat/4840012?cm=sCN-cCNY&navdetail=mega:cat6610030:c1:p2'
}

response = requests.get(base_url, headers=headers)
html = response.text
res = re.compile(r'class="product-list">(.+?)<div class="filters-noresult">', re.S).findall(html)[0]
res_ = re.compile(r'<img class="item active product-image product-image-front img-responsive lazyload"+?data-srcset="(.+?)">', re.S).findall(res)
print(res_)





